/*
 * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.inspur.edp.cef.generator.coreGenerator.base.mgrGenerator;

import com.inspur.edp.caf.generator.compileunit.CompileUnitGeneratorContext;
import com.inspur.edp.caf.generator.composite.CompositeGeneratorContext;
import com.inspur.edp.cef.gencommon.MediateType;
import com.inspur.edp.cef.generator.coreGenerator.base.CefCoreGeneratorContext;
import com.inspur.edp.cef.generator.coreGenerator.base.serializer.changeser.ChangeSerGenContext;
import com.inspur.edp.cef.generator.coreGenerator.base.serializer.dataser.CefDataSerGenContext;

public class ManagerGeneratorContext extends CompositeGeneratorContext {

  public ManagerGeneratorContext() {
  }

  public ManagerGeneratorContext(CefCoreGeneratorContext projContext) {
    this.setProjContext(projContext);
//    projContext.setManagerGeneratorContext(this);
  }

  private CefCoreGeneratorContext privateProjContext;

  public final CefCoreGeneratorContext getProjContext() {
    return privateProjContext;
  }

  public final void setProjContext(CefCoreGeneratorContext value) {
    privateProjContext = value;
  }

  public final CompileUnitGeneratorContext getRootCompileUnitGenCtx() {
    return getProjContext();
  }

  private MediateType mainDataDeserType;

  public MediateType getMainDataDeserType() {
    return mainDataDeserType;
  }

  public void setMainDataDeserType(MediateType mainDataDeserType) {
    this.mainDataDeserType = mainDataDeserType;
  }


  //vo生成时才有, be/udt生成时此属性为null
  private CefDataSerGenContext dataSerContext;

  public final CefDataSerGenContext getDataSerContext() {
    return dataSerContext;
  }

  public final void setDataSerContext(CefDataSerGenContext value) {
    dataSerContext = value;
  }

  private ChangeSerGenContext changeSerContext;

  public final ChangeSerGenContext getChangeSerContext() {
    return changeSerContext;
  }

  public final void setChangeSerContext(ChangeSerGenContext changeSerContext) {
    this.changeSerContext = changeSerContext;
  }
}
